<?php 
	require 'Home/ViewModel.php';
	class Controller{
		protected $model;
		protected $viewmodel;
		function __Construct(){
			$c = isset($_GET['c'])?$_GET['c']:'index';
			$m = isset($_GET['m'])?$_GET['m']:'index';
			$this->viewmodel = new ViewModel($c.'/'.$m);
		}

		function assign($var,$value){
			$this->viewmodel->assign($var,$value);
		}

		public function display(){
			$this->viewmodel->display();
		}
	}
 ?>